import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import qs from 'qs'
import Axios from 'axios'
import VueAxios from 'vue-axios'
import {BootstrapVue, IconsPlugin} from 'bootstrap-vue'
// import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
// import { library } from '@fortawesome/fontawesome-svg-core'
// import { faUserSecret } from '@fortawesome/free-solid-svg-icons'
// import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
//
// library.add(faUserSecret);
// Vue.component('font-awesome-icon', FontAwesomeIcon);

// 绑定bootstrap组件
Vue.use(BootstrapVue);
Vue.use(IconsPlugin);

// 将qs绑定到原型链中
Vue.prototype.qs = qs;

// 绑定axios组件
Vue.use(VueAxios, Axios);
// 配置axios全局配置
Axios.defaults.baseURL = process.env.VUE_APP_API_SERVER_PATH;
Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');
